import { createRouter, createWebHashHistory } from "vue-router"
import login from "@/views/login.vue"
import Main from "@/views/main.vue"
import rl from "@/views/rl.vue"
import setting from "@/views/setting.vue"
import APPList from "@/views/applist.vue"
import Q from "@/views/Q.vue"
import work from "@/views/work/index.vue"
import paper from "@/views/work/paper.vue"

const routes = [
    { path: '/', component: login },
    { path: '/main', component: Main },
    { path: '/rl', component: rl },
    { path: "/setting", component: setting },
    { path: "/APP", component: APPList },
    { path: "/work", component: work },
    { path: "/work/paper", component: paper }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})
export default router